package tq.com.tqcom.vh;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class ComViewHolder extends RecyclerView.ViewHolder {
    static public ComViewHolder instance(Context pContext, ViewGroup container, int res){
        View lView = LayoutInflater.from(pContext).inflate(res, container, false);
        return new ComViewHolder(lView);
    }
    public ComViewHolder(View lView){
        super(lView);
    }

    public ComViewHolder onClickListener(View.OnClickListener pOnClickListener){
        itemView.setOnClickListener(pOnClickListener);
        return this;
    }
}
